PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/tutorial/cecil/c_startup/c_prog.c

http://github.com/tybor/Liberty
C | 21 lines | 11 code | 4 blank | 6 comment | 0 complexity | 31b0ac150a3dd0ab12579b7e26ad510a MD5 | raw file
 1#include <stdio.h>
 2#include "eiffel.h"
 3
 4int main(int argc,char*argv[]) {
 5  /* Do here what you want to do before starting Eiffel code :
 6   */
 7  printf("Hi from C world.\n");
 8
 9  /* Must be called once before calling Eiffel code :
10   */
11  initialize_eiffel_runtime(argc,argv);
12
13
14  /* Now calling Eiffel code :
15   */
16  eiffel_do_it(eiffel_root_object);
17  printf("I am back to C world.\n");
18  eiffel_do_it(eiffel_root_object);
19  printf("I am back (again) to C world.\n");
20  exit (0);
21}