i have a common source file with global stuff used by several projects. When playing around with the new module feature, i noticed that the source must be included in each module separately to gain access to the procedures. Now i have 2 questions:
1. Is there a way to access procedures which are outside of a module?
2. If the file is included two times as in the example below, will the code be linked twice and blow up the executables size?
Code: Select all
DeclareModule First
Declare Init()
EndDeclareModule
Module First
IncludeFile "../Common/Common.pb"
Procedure Init()
MyCommonProcedure()
EndProcedure
EndModule
DeclareModule Second
Declare Init()
EndDeclareModule
Module Second
IncludeFile "../Common/Common.pb"
Procedure Init()
MyCommonProcedure()
EndProcedure
EndModule
Uwe