Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities includingStack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Loading…
Code Review

Questions tagged [macros]

Ask Question

A macro in computer science is a rule or pattern that specifies how a certain input sequence (often a sequence of characters) should be mapped to a replacement output sequence (also often a sequence of characters) according to a defined procedure. Do not use this tag for questions regarding Microsoft's Visual Basic for Applications. VBA evolved from an early macro language, but is not a macro language itself.

122 questions
Filter by
Sorted by
Tagged with
4votes
1answer
78views

I like from the C++ unit test framework Catch2 its sections -- much more than the xUnit test fixtures. Therefore I wrote me some macros which mimic the Catch2 sections.This is the first macro heavy ...
tommsch's user avatar
3votes
1answer
154views

I usually use the Catch2 testing framework in my C++ projects. Unlike other frameworks, it has only one core assertion macro for all comparisons. Instead of writing ...
-1votes
1answer
83views

I have a chunky VBA script that needs some help making it efficient, which I think will correct the "Procedure too Large" issue I just ran into.I run the procedure from an open workbook ...
WhiteRaven76's user avatar
4votes
1answer
418views

The requirement is to define a macro which takes a single argument that is a string literal.My first try at it was to surround it with empty string literals (I got this from Modern C):...
Madagascar's user avatar
2votes
1answer
101views

So I've decided to flex showcase my "enum that accepts strings etc..." here.I don't know if it's great but I'm pretty sure it's decent. It is implemented in less than 200 lines of code (not ...
PinkTurtle's user avatar
5votes
1answer
282views

Was thinking about extending the C switch beyond integers. Here is what it came to - will gladly accept any suggestions for improvement.Note: "Any class" in the title is not quite correct - ...
johngo's user avatar
3votes
1answer
136views

For fun I decided to try to emulate lambda functions in plain old C. It turns out it can be easily done with a bit of macro abuse.CLambda struct stores function ...
KlemenPl's user avatar
3votes
1answer
238views

To learn how custom derive macros work in Rust, I decided to create a simple derive macro to provide getters and setters for a given struct.It would be used like this:...
Dornteufel's user avatar
5votes
0answers
50views

I wrote a trait library that allows the de-/serialization of data structures from/to little endian bytes 1.For it I now wrote my first procedural macro 2 to be able to derive the traits ...
user avatar
8votes
2answers
1kviews

I am writing a java class file parsing & serialization library. As part of that i needed to implement a structure for the JVM bytecode instructions as well as come up with a way to parse & ...
3votes
2answers
459views

I'm getting back into C and I wrote this variadic logger as part of a chess application I'm writing. As such I'm looking for feedback about the general approach (I'm going to give it another pass to ...
blinken_lx's user avatar
4votes
1answer
692views

I'm trying to implement a simple type-generic Vector with macros using the newest features of C23. Looking for any advice about macro design and pitfalls because I generally avoid macros at all costs. ...
Biggs's user avatar
3votes
2answers
479views

This library is a fork of eteran/c-vector. It is macro based, so that it is generic, without void pointers and additional functions. This of course means that it has the downsides of macros in C. The ...
7votes
3answers
554views

For a recent project of mine I had to create various data structures in pure C with no external libraries (in other words, code I've written by myself), which lacks the templating and OOP capabilities ...
404 Name Not Found's user avatar
2votes
1answer
89views

Code explanation:I have a code, which performs two tasks -To open two workbooks, one being extract info and one destination and it compares the column A with Column A of these workbooks and all ...
Rokas's user avatar

153050per page
1
2345
9

Hot Network Questions

more hot questions
Newest macros questions feed

[8]ページ先頭

©2009-2025 Movatter.jp