Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (25 sloc) 477 Bytes
%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);
You can’t perform that action at this time.