mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-06 15:48:47 +00:00
helper macro docs
This commit is contained in:
@@ -549,16 +549,21 @@ main:
|
|||||||
//~ Basic Utilities
|
//~ Basic Utilities
|
||||||
|
|
||||||
@send(HelperMacros)
|
@send(HelperMacros)
|
||||||
|
@doc("Will cause a crash when @code 'c' is false.")
|
||||||
@macro MD_Assert: {
|
@macro MD_Assert: {
|
||||||
c,
|
c,
|
||||||
};
|
};
|
||||||
|
|
||||||
@send(HelperMacros)
|
@send(HelperMacros)
|
||||||
|
@doc("Will cause a compilation failure when @code 'c' is false.")
|
||||||
@macro MD_StaticAssert: {
|
@macro MD_StaticAssert: {
|
||||||
c,
|
c,
|
||||||
|
@doc("A label for this static assertion. Necessary for static asserts in C.")
|
||||||
|
label,
|
||||||
};
|
};
|
||||||
|
|
||||||
@send(HelperMacros)
|
@send(HelperMacros)
|
||||||
|
@doc("Treats @code 'a' as a static array to calculate the number of elements in the array. Does not work on pointers used to point at a number of elements.")
|
||||||
@macro MD_ArrayCount: {
|
@macro MD_ArrayCount: {
|
||||||
a,
|
a,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user