Advertisement
snake5

SGScript - C++ binding compiler markup example

Oct 27th, 2013
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1.  
  2. #pragma once
  3.  
  4. #include <sgs_cppbc.h>
  5. #include <stdio.h>
  6.  
  7.  
  8. class thing
  9. {
  10. public:
  11.    
  12.     SGS_OBJECT;
  13.    
  14.     thing( int sz ) : size( sz ){}
  15.    
  16.     SGS_METHOD int getTotalSize();
  17.     SGS_METHOD void addThing( thing* ch );
  18.        
  19. private:
  20.    
  21.     SGS_PROPERTY int size;
  22.    
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement