epilk
Re:Zapcc – A caching C++ compiler based on clang
on Monday June 18, 2018 @08:17AM (#17337631)
How else will the project know that the major changes will be maintained? Having code in a project without an owner will just lead to bugs and bit rot.
Re:Some obscure C features
on Thursday January 25, 2018 @05:57PM (#16235534)
I also encountered the last problem, it can be handled pretty easily with __attribute__((constructor)):
void (*_test_functions[NTEST_FUNCTIONS])(void);
int _test_function_idx;
#define TEST_FUNCTION(fname) \
void fname(void); \
__attribute__((constructor)) static void _init_ ## fname (void) { \
_test_functions[_test_functions_idx++] = fname; \
} \
void fname()
TEST_FUNCTION(test_foo_bar) {
assert(foo_bar == 0);
}