By checking the recursion depth in the crate we are currently parsing, we can decide on the right module directory to find submodules in. The added `mod_2018` test fails without the changes to `parser.rs`.
21 lines
298 B
C
21 lines
298 B
C
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
#define EXPORT_ME_TOO 42
|
|
|
|
typedef struct {
|
|
uint64_t val;
|
|
} ExportMe;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif // __cplusplus
|
|
|
|
void export_me(ExportMe *val);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif // __cplusplus
|