Yes, you can, but you should do it in the _init
routine for your macro file. For example, if your macro file is called myMacros.pl
, then you could use
sub _myMacros_init { PG_restricted_eval('sub Tunneling {Parser::Function->call("Tunneling",@_)}'); }to define your function. it is possible to put it in directly, but it is safer to do this, so that your macro file can be used in more general situations.