mirror of
https://github.com/wolfcw/libfaketime.git
synced 2026-05-17 08:36:28 +03:00
Earlier, this code was conceived of to test a "function" specifically, but some future snippet could test multiple function calls, or a subset of a function call (e.g. snippets/syscall_clock_gettime.c already only tests one particular syscall diversion number). Normalizing on the name "snippet" should make it easier to understand the code going forward.
9 lines
246 B
C
9 lines
246 B
C
#include "snippets/include_headers.h"
|
|
#define where "library"
|
|
void SNIPPET_NAME_as_needed() {
|
|
printf(" called SNIPPET_NAME_as_needed() \n");
|
|
}
|
|
static __attribute__((constructor)) void init_SNIPPET_NAME() {
|
|
#include "snippets/SNIPPET_NAME.c"
|
|
}
|