Move system api to custom layer

This commit is contained in:
Allen Webster 2019-10-07 18:11:40 -07:00
parent 54c5ce389b
commit b1548f3a43
7 changed files with 20 additions and 1 deletions

View File

@ -23,11 +23,15 @@
function API_Definition*
define_api(Arena *arena);
function Generated_Group
get_api_group(void);
int
main(void){
Arena arena = make_arena_malloc();
API_Definition *api = define_api(&arena);
if (!api_definition_generate_api_includes(&arena, api, GeneratedGroup_Core, 0)){
if (!api_definition_generate_api_includes(&arena, api, get_api_group(), 0)){
return(1);
}
return(0);

View File

@ -25,5 +25,10 @@ define_api(Arena *arena){
return(api);
}
function Generated_Group
get_api_group(void){
return(GeneratedGroup_Core);
}
// BOTTOM

View File

@ -33,5 +33,10 @@ define_api(Arena *arena){
return(api);
}
function Generated_Group
get_api_group(void){
return(GeneratedGroup_Core);
}
// BOTTOM

View File

@ -252,5 +252,10 @@ define_api(Arena *arena){
return(api);
}
function Generated_Group
get_api_group(void){
return(GeneratedGroup_Custom);
}
// BOTTOM