The clue is the complaint about the DEFINE_PROPERTY line, so try getting rid of the colons. I tend to use /* */ for comments, but my coding isn't great. Beyond that, check the original UDF works on your model (we change some macros with versions, but I'm not aware of anything that'll effect the above) and then look for differences.