1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-08 18:14:21 +03:00
inform7/inter/final-module/Chapter 1/Final Module.w
2021-09-03 23:11:16 +01:00

57 lines
1.3 KiB
OpenEdge ABL

[FinalModule::] Final Module.
Setting up the use of this module.
@ This section simoly sets up the module in ways expected by //foundation//, and
contains no code of interest. The following constant exists only in tools
which use this module:
@d FINAL_MODULE TRUE
@ This module defines the following classes:
@e final_c_function_CLASS
@e kov_value_stick_CLASS
@e I6_generation_data_CLASS
@e C_generation_data_CLASS
@e C_dword_CLASS
@e C_property_CLASS
@e C_pv_pair_CLASS
=
DECLARE_CLASS(final_c_function)
DECLARE_CLASS(kov_value_stick)
DECLARE_CLASS(I6_generation_data)
DECLARE_CLASS(C_generation_data)
DECLARE_CLASS(C_dword)
DECLARE_CLASS(C_property)
DECLARE_CLASS(C_pv_pair)
@ Like all modules, this one must define a |start| and |end| function:
=
void FinalModule::start(void) {
@<Register this module's memory allocation reasons@>;
@<Register this module's stream writers@>;
@<Register this module's debugging log aspects@>;
@<Register this module's debugging log writers@>;
}
void FinalModule::end(void) {
}
@
@e CODE_GENERATION_MREASON
@<Register this module's memory allocation reasons@> =
Memory::reason_name(CODE_GENERATION_MREASON, "code generation workspace for objects");
@<Register this module's stream writers@> =
;
@<Register this module's debugging log aspects@> =
;
@<Register this module's debugging log writers@> =
;