Last change
on this file was
11654,
checked in by westram, 11 years ago
|
- added place to execute some code at start_of_main()
- called before every ARB_main
- called in unittests (at start of test launcher and when preparing environment)
- start_of_main() currently does not execute anything!
|
File size:
267 bytes
|
Line | |
---|
1 | // main-wrapper |
---|
2 | |
---|
3 | #include <arb_main.h> |
---|
4 | |
---|
5 | int ARB_main(int argc, char *argv[]); |
---|
6 | int main(int argc, char **argv) { |
---|
7 | // this is the only main() we like in production code |
---|
8 | // other main()'s occur in test-code |
---|
9 | start_of_main(); |
---|
10 | return ARB_main(argc, argv); |
---|
11 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.