#pragma is implemented right down in the compiler so there is no way to implement custom ones
BUT since I control the source going into the script I figured I would just use a regex to find it and set a global boolean in the script source and off we’d go
unfortunately what I cannot do is use something like
#if UseApi2
Sub someAPI2CompliantFunction()
End Sub
#end if
this doesnt work in Xojo code or Xojo script so I may end up having to handle a UseApi2 pragma as an “include” that the runtime engine deals with
that is, unless I can find something else that will work as I want - this is still under investigation