2 ms·
Sort of related with gcc's nested function extension, you can reference variables that in scope when the function is defined. If you pass a pointer to the neste
by Gibbon1 7y ago
Sort of related with gcc's nested function extension, you can reference variables that in scope when the function is defined. If you pass a pointer to the nested function is can access those variables (via a trampoline on the stack).
To me that's been very useful to have both to get around not being able to use malloc.
Meaning I think it's a good idea actually.