The procedure to add a constants file is rather simple: - add the *.h (or *.c) file to config/gen/parrot_include.pl - surround your #define's or enum with these directives: /* &gen_from_{enum,def}(<file.pasm>) [ prefix(<SOME_PREFIX_>) ] \ [ subst(s/<x>/<y>/flags?) ] */ ... /* &end_gen */
prefix() and subst() are optional, if both are present, the prefix is prepended first. The <file.pasm> shouldn't have a path, runtime/parrot/include/ is prepended always.
s. include/parrot/*.h for examples
Have fun, leo