general update, updated cimport so it parses struct definitions from imported headers, improved the error reporting, added ifdef and ifndef, added proper support for extern variadic functions, added some new sections and pages to the doc tool and added --check to only check the program corectness and run compile time defs without producing a binary
This commit is contained in:
18
tests/cimport_structs.h
Normal file
18
tests/cimport_structs.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef TEST_STRUCTS_H
|
||||
#define TEST_STRUCTS_H
|
||||
|
||||
struct Point {
|
||||
long x;
|
||||
long y;
|
||||
};
|
||||
|
||||
struct Pair {
|
||||
long a;
|
||||
long b;
|
||||
};
|
||||
|
||||
/* Pointer-based helpers (simple scalar ABI). */
|
||||
long point_sum_ptr(struct Point *p);
|
||||
long pair_sum_ptr(struct Pair *p);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user