06.09.2017, 10:48
So here the thing. I was playing around with Y_INI a bit then a few days ago I realized there's a parameter in the function which I haven't used. Like ever. Which is .bLocal.
Now I've seen in wikis/forums that it enables the function to call in local functions while parsing files.
Let me cut to the chase. I'm creating a GM and the approach is modular. So I need a function which is local (cannot be accessed from another file) and then configure the INI_ParseFile to access that particular local function. I know that the function which is to be called by the parser needs to be public. But let's just say that the circumstance wants that the function to be called be local, inaccessible from outside the scope.
If someone could give me a brief explanation with an example. Stressing on the example more than the explanation would be much appreciated.
~iSpark
Код:
INI_ParseFile(fname[], remoteFormat[], bool:bFileFirst = false, bool:bExtra = false, extra = 0, bool:bLocal = true, bool:bPassTag = false, bool:bFilter = true, filter[] = "")
Let me cut to the chase. I'm creating a GM and the approach is modular. So I need a function which is local (cannot be accessed from another file) and then configure the INI_ParseFile to access that particular local function. I know that the function which is to be called by the parser needs to be public. But let's just say that the circumstance wants that the function to be called be local, inaccessible from outside the scope.
If someone could give me a brief explanation with an example. Stressing on the example more than the explanation would be much appreciated.
~iSpark