The code:
Code: Select all
DeclareModule MyMod
MyLabel:
EndDeclareModule
Module MyMod
EndModule
DataSection
Data.i MyMod::?MyLabel
EndDataSection
Code: Select all
PureBasic - Assembler error
PureBasic.asm [622]:
dq l_mylabel
error: undefined symbol 'l_mylabel'.
Code: Select all
*mypoint = MyMod::?MyLabel
On the other hand, module procedure address work fine in DataSections:
Code: Select all
DeclareModule MyMod
Declare MyProc()
EndDeclareModule
Module MyMod
Procedure MyProc()
Debug "test"
EndProcedure
EndModule
Read *procpoint
CallCFunctionFast(*procpoint)
DataSection
Data.i MyMod::@MyProc()
EndDataSection