## WeBWorK Problems

### Re: Creating a special context?

by Davide Cervone -
Number of replies: 0
I wanted to see if I could put that line into the context definition file. Is that possible?

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.