Reflection filter (again)

Monkey Forums/Monkey Programming/Reflection filter (again)

ziggy(Posted 2013) [#1]
How can I add the entry point of my project to the reflection filter? I mean the main monkey file. All other files can be reflected using "relative" notation to this file, but how can I reflect this file and avoid the "*" thingy as I don't want to reflect EVERYTHING . Any ideas?

how I love there was a #REFLECT_THIS_FILE flag or something. This would make files "moveable" between folder without making the source code fail to work.


marksibly(Posted 2013) [#2]
Ok, I've added a new built in constant MODPATH that contains module path of file currently being built - you can use it like this:

#REFLECTION_FILTER+="${MODPATH}"


ziggy(Posted 2013) [#3]
Thanks!!! I appreciate it a lot!


Shinkiro1(Posted 2013) [#4]
Thanks. That makes thing easier.