| 272 | } |
| 273 | |
| 274 | das_error * das_program_get_error ( das_program * program, int index ) { |
| 275 | auto prog = (Program *) program; |
| 276 | if ( index<0 || index>=int(prog->errors.size()) ) return nullptr; |
| 277 | return (das_error *) &(prog->errors[index]); |
| 278 | } |
| 279 | |
| 280 | das_context * das_context_make ( int stackSize ) { |
| 281 | return (das_context *) get_context(stackSize); |