mirror of
				https://github.com/CPunch/Cosmo.git
				synced 2025-10-31 04:50:12 +00:00 
			
		
		
		
	You can use ':' without invoking. So you can grab a method binding to an object and later call it. Also some GC bugs were fixed. A new preprocessor macro (VM_DEBUG) has been added. Defining this macro will print each instruction thats being executed in the VM, as well as print each call.
		
			
				
	
	
		
			12 lines
		
	
	
		
			234 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			234 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef CDEBUG_H
 | |
| #define CDEBUG_H
 | |
| 
 | |
| #include "cchunk.h"
 | |
| 
 | |
| COSMO_API void disasmChunk(CChunk *chunk, const char *name, int indent);
 | |
| COSMO_API int disasmInstr(CChunk *chunk, int offset, int indent);
 | |
| 
 | |
| void printIndent(int indent);
 | |
| 
 | |
| #endif
 |