PrivateSection/EndPrivateSection
Posted: Thu Jul 04, 2013 12:52 am
Don't panic, it's not a further wish for Private keyword in modules
I'm using a preprocessor. For this I write some own commands, which are interpreted by the preprocessor. This own commands can be placed on different positions in the code. For example, I'm writing the following code and my preprocessor makes a complete interface and the vtable from this and write the code into an pbi file:
Inside this sections the compiler should ignore absolutly all (also compilerIf's). In best case, the content of this sections should be ignored for autocomplete too.
At the moment I have bedded this commands between CompilerIf / CompilerendIf. To find this with my preprocessor, I have to use the additional commands PrivatSection / EndPrivateSection inside the compilerif. Unfortunately it's not possible to use PrivatSection / EndPrivatSection and change this to CompilerIf's by macro. So I'm asking, is it possible to get this native.
Thxs
Josh

I'm using a preprocessor. For this I write some own commands, which are interpreted by the preprocessor. This own commands can be placed on different positions in the code. For example, I'm writing the following code and my preprocessor makes a complete interface and the vtable from this and write the code into an pbi file:
Code: Select all
Interface ISCE_SITE
QueryInterface (@SCE_Site_QueryInterface)
AddRef (@SCE_Site_AddRef)
Release (@SCE_Site_Release)
GetLCID (@SCE_Site_GetLCID)
GetItemInfo (@SCE_Site_GetItemInfo)
GetDocVersionString (@SCE_Site_GetDocVersionString)
OnScriptTerminate (@SCE_Site_OnScriptTerminate)
OnStateChange (@SCE_Site_OnStateChange)
OnScriptError (@SCE_Site_OnScriptError)
OnEnterScript (@SCE_Site_OnEnterScript)
OnLeaveScript (@SCE_Site_OnLeaveScript)
EndInterface
At the moment I have bedded this commands between CompilerIf / CompilerendIf. To find this with my preprocessor, I have to use the additional commands PrivatSection / EndPrivateSection inside the compilerif. Unfortunately it's not possible to use PrivatSection / EndPrivatSection and change this to CompilerIf's by macro. So I'm asking, is it possible to get this native.
Thxs
Josh