Makopo/lslint

Error when using special preprocessor-provided constants

Closed this issue · 4 comments

XenHat commented

Thanks for the updated binaries, I can script again!

I am having issues when using some special constants provided by the LSL Preprocessor, such as __AGENTID__:
image

Would it be possible to treat them properly?

The few constants added by the preprocessor are the following:

  • __FILE__ - the full path to the script as it would appear in the include cache. The top script only uses its name.
  • __LINE__ - the line of the current script where it is expanded; this starts at line 0
  • __SHORTFILE__ - the name of the current script without full file path
  • __AGENTID__ - a string-encapsulated version of the agent's key who compiles the script
  • __AGENTKEY__ - same as above, legacy version
  • __AGENTIDRAW__ - a nonstring-encapsulated version of the agent's key who compiles the script
  • __AGENTNAME__ - a string-encapsulated version of the agent's full name who compiles the script
  • __ASSETID__ - a string-encapsulated version of the assetid of the current script; may return “NOT IN WORLD” or a nonstring-encapsulated null key in rare circumstances

Source: #preprocessor_commands_and_macros

XenHat commented

I am using the same setup I have been using this whole time: Sublime Text, SublimeLinter3, my plugin and mcpp :)

XenHat commented