Integer limit constants for C++ macros. More...
| int | INT8_MIN |
| int | INT8_MAX |
| int | UINT8_MAX |
| int | INT16_MIN |
| int | INT16_MAX |
| int | UINT16_MAX |
| int | INT32_MIN |
| int | INT32_MAX |
| int | UINT32_MAX |
| int | INT64_MIN |
| int | INT64_MAX |
| int | UINT64_MAX |
| int | SIZE_MAX |
| int | NULL |
| int | __bool_true_false_are_defined |
Integer limit constants for C++ macros. One plugin serves #include <stdint.h>, #include <stddef.h> and #include <stdbool.h>. Available from LayoutEditor 20260918.
There are no functions in this binding — only named numbers. A constant is a name you write in an expression, like a variable that never changes:
if (n > INT32_MAX) { /* too large for a 32-bit signed int */ }
bool, true and false are already keywords in the macro language. They are not redefined here.
NULL is the empty pointer (integer 0). Use it when a function returns a pointer and you need to test “no object”.
#include <stdint.h>
#include <stddef.h>
int main(){
int *p = NULL;
if (p) return 1;
cout("INT32_MAX = ", INT32_MAX, "\n");
cout("INT8_MIN = ", INT8_MIN, "\n");
}
Each name is a whole number. MIN is the most negative value of that width, MAX the most positive. U…MAX is the maximum of an unsigned (never negative) integer of that width.
8-bit integers (1 byte).
INT8_MIN = -128 INT8_MAX = 127 UINT8_MAX = 255 Use: when you need to know whether a value fits in a byte.
16-bit integers (2 bytes).
INT16_MIN = -32768 INT16_MAX = 32767 UINT16_MAX = 6553532-bit integers (4 bytes). A normal macro int is in this range on the LayoutEditor.
INT32_MIN = -2147483648 INT32_MAX = 2147483647 UINT32_MAX = 429496729564-bit integers (8 bytes).
INT64_MIN = -9223372036854775808 INT64_MAX = 9223372036854775807 UINT64_MAX = 18446744073709551615Largest value of a size (here the same magnitude as UINT64_MAX). Used in C for the type size_t (sizes of arrays and allocations).
Empty pointer. Value: 0.
Example: FILE *fp = fopen(path, "r"); if (fp == NULL) { /* failed */ }
Set to 1 to signal that boolean keywords exist (they already do in the macro language). You rarely need this name in a macro.
Python: None for empty pointers; int has unlimited size. This include is for C++ macros only.