Logo
Explore Help
Register Sign In
IgorCielniak/l2
1
0
Fork 0
You've already forked l2
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
e8271895fb6bf5909ce027fe3505395d4a06068d
l2/tests/cimport_structs.c

10 lines
157 B
C
Raw Normal View History

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
2026-03-11 21:27:48 +01:00
#include "cimport_structs.h"
long point_sum_ptr(struct Point *p) {
return p->x + p->y;
}
long pair_sum_ptr(struct Pair *p) {
return p->a + p->b;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 15ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API