Showing the changes to src/core/chuck_instr.cpp (1 of 26 files). Show all
Unified · Split
| @@ -3902,7 +3902,9 @@ Chuck_Object * instantiate_and_initialize_object( Chuck_Type * type, Chuck_VM_Sh · 3901 unmodified lines | |||
| 3902 | // check type TODO: make this faster | 3902 | // check type TODO: make this faster |
| 3903 | if( type->allocator ) | 3903 | if( type->allocator ) |
| 3904 | object = type->allocator( vm, shred, Chuck_DL_Api::Api::instance() ); | 3904 | object = type->allocator( vm, shred, Chuck_DL_Api::Api::instance() ); |
| 3905 | // else if( isa( type, vm->env()->t_fileio ) ) object = new Chuck_IO_File( vm ); | 3905 | #ifndef __DISABLE_FILEIO__ |
| 3906 | else if( isa( type, vm->env()->t_fileio ) ) object = new Chuck_IO_File( vm ); | ||
| 3907 | #endif | ||
| 3906 | else if( isa( type, vm->env()->t_event ) ) object = new Chuck_Event; | 3908 | else if( isa( type, vm->env()->t_event ) ) object = new Chuck_Event; |
| 3907 | else if( isa( type, vm->env()->t_string ) ) object = new Chuck_String; | 3909 | else if( isa( type, vm->env()->t_string ) ) object = new Chuck_String; |
| 3908 | // TODO: is this ok? | 3910 | // TODO: is this ok? |