Is called by compile_main_function
# Hook to add specif piece of code before the the main C function.
#
# Is called by `compile_main_function`
fun compile_before_main(v: VISITOR)
do
end
src/compiler/abstract_compiler.nit:878,2--883,4
redef fun compile_before_main(v)
do
super
if not modelbuilder.toolcontext.opt_trace_memory.value then return
header.add_decl("#include <time.h>")
header.add_decl("extern FILE *mlog;")
header.add_decl("extern struct timespec mlog_last;")
header.add_decl("extern struct timespec mlog_time0;")
v.add_decl("FILE *mlog;")
v.add_decl("struct timespec mlog_last;")
v.add_decl("struct timespec mlog_time0;")
end
src/compiler/memory_logger.nit:30,2--43,4