4coder/code/4ed_api_definition_main.cpp

42 lines
700 B
C++
Raw Normal View History

2019-10-03 23:00:31 +00:00
/*
* Mr. 4th Dimention - Allen Webster
*
* 02.10.2019
*
* System API definition program.
*
*/
// TOP
#include "4coder_base_types.h"
#include "4ed_api_definition.h"
#include "4coder_base_types.cpp"
#include "4ed_api_definition.cpp"
#include "4coder_stringf.cpp"
#include "4coder_malloc_allocator.cpp"
#include <stdio.h>
////////////////////////////////
function API_Definition*
define_api(Arena *arena);
2019-10-08 01:11:40 +00:00
function Generated_Group
get_api_group(void);
2019-10-03 23:00:31 +00:00
int
main(void){
Arena arena = make_arena_malloc();
API_Definition *api = define_api(&arena);
2019-10-08 01:11:40 +00:00
if (!api_definition_generate_api_includes(&arena, api, get_api_group(), 0)){
2019-10-05 02:48:05 +00:00
return(1);
2019-10-03 23:00:31 +00:00
}
return(0);
}
// BOTTOM