Category : args

So i want to basically call a void and store my menu, Menu Number, Text, and the function(void) im defiently doing this wrong however i can’t figure it out. void AddMenu(char* text, int Menu, void* func) { nMenu[Menu] = Menu; sMenu[Menu] = text; fMenu[Menu]* func; } So the idea would be void AddMenu("Main Menu", 0, ..

Read more

When I run this code there is a problem when trying to run this line of code: Board board = *(((BoardObject*)(_board))->board); That’s because this function: PyArg_ParseTuple(args, "O!", &BoardType, &_board); fills the variable _board with nullptr. So how can I get all the member variables from an object of the class Board_acc in the C++ class ..

Read more