Code: Select all
CompilerIf Defined(IID_NULL, #PB_Label) = #False
IID_NULL: ; {00000000-0000-0000-0000-000000000000}
Data.l $00000000
Data.w $0000, $0000
Data.b $00, $00, $00, $00, $00, $00, $00, $00
CompilerEndIf
Code: Select all
CompilerIf Defined(IID_NULL, #PB_Label) = #False
IID_NULL: ; {00000000-0000-0000-0000-000000000000}
Data.l $00000000
Data.w $0000, $0000
Data.b $00, $00, $00, $00, $00, $00, $00, $00
CompilerEndIf
I had the same idea at one time until I realized that labels are the only "constant" type that can be used before it's defined.Josh wrote:maybe it would be possible, to add labels to the defined-function. then i could do this:
ok, its not importent, i can make also with a constant, but it would be niceCode: Select all
CompilerIf Defined(IID_NULL, #PB_Label) = #False IID_NULL: ; {00000000-0000-0000-0000-000000000000} Data.l $00000000 Data.w $0000, $0000 Data.b $00, $00, $00, $00, $00, $00, $00, $00 CompilerEndIf
Code: Select all
CompilerIf Defined(IID_NULL, #PB_Constant) = #False : #IID_NULL = 0
IID_NULL: ; {00000000-0000-0000-0000-000000000000}
Data.l $00000000
Data.w $0000, $0000
Data.b $00, $00, $00, $00, $00, $00, $00, $00
CompilerEndIf
you mean like in my second posting?Mistrel wrote:As a workaround you can define a constant that matches your label and check against that.