1 # This script generates api_id_mapping header from api list
5 print " * this file genereted by <swap-probe> project with cmd <make headers>"
8 print "#ifndef __API_ID_MAP__"
9 print "#define __API_ID_MAP__"
11 print "#ifdef __cplusplus"
16 macro_prefix = "API_ID_"
23 split(def, splited, "###")
25 gsub(/[,:()*&~\[\] ]/, "_", def)
26 def = macro_prefix def
27 printf "#define %-135s %d // %s\n", def, api_id, orig
33 print "#ifdef __cplusplus"
37 print "#endif /* __API_ID_MAP__ */"