Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
%module modular_tetris
%inline %{
#ifdef __cplusplus
extern "C"
{
#endif
#include "model.h"
#include "board.h"
#include "boilerplate.h"
enum Color get_color_value(enum Color **color, int col, int row) {
return color[col][row];
}
#ifdef __cplusplus
}
#endif
%}
#ifdef SWIGJAVA
%include "enumtypesafe.swg"
%javaconst(1);
%rename Board BoardSwigWrap;
%rename Color ColorSwigWrap;
#endif
%include "model.h"
%include "board.h"
extern void free_board(struct Board *board);