mirror of
https://github.com/clockworkpi/Menu.git
synced 2025-12-13 07:58:51 +01:00
24 lines
513 B
Plaintext
Executable File
24 lines
513 B
Plaintext
Executable File
|
|
inline va_size(x& void) uint32 {
|
|
using size. uint32 = .x - 8;
|
|
func = .size;
|
|
}
|
|
|
|
inline va_start(x& void) void {
|
|
using size. uint32 = .x - 8;
|
|
func = .x - (.size + 8);
|
|
}
|
|
|
|
inline va_next<T>(ap& void) {
|
|
ap += ((sizeof(T) + (sizeof(word) - 1)) /
|
|
sizeof(word) * sizeof(word));
|
|
}
|
|
|
|
inline va_nexts<T>(ap& void, size& uint32) {
|
|
define {
|
|
x = ((sizeof(T) + (sizeof(word) - 1)) /
|
|
sizeof(word) * sizeof(word));
|
|
}
|
|
ap += x, size -= x;
|
|
}
|