// TODO: do case-less comparison for file name
How can I check in the line callback in which script file I'm currently in. In my editor I can have many scripts open on tabs and I wan't to be able to check if any of those breakpoints that are set, were hit. Is it possible with the current version of AS or is there any workaround for this?
Thanks in advance!
EDIT:
I think I have a solution for this case. I'm loading each file into the script section with the adequate name.
For example: file Unit_OnUpdate.as goes to the script section called "Unit_OnUpdate". Then in my line callback function
I can check in which script section I am currently in using:
int line = ctx->GetLineNumber(0, 0, &scriptSection);