Skip to content

Commit

Permalink
Merge pull request #553 from Farama-Foundation/windows-updates
Browse files Browse the repository at this point in the history
Fix compatibly with Windows
  • Loading branch information
mwydmuch authored Sep 11, 2023
2 parents c08fd06 + c049423 commit 227d0c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,15 @@ src/vizdoom/tools/*/release
src/vizdoom/tools/*/*.exe
src/vizdoom/tools/lemon/lemon
src/vizdoom/tools/re2c/re2c
src/vizdoom/tools/re2c/config.h
src/vizdoom/tools/updaterevision/x64/
src/vizdoom/tools/updaterevision/updaterevision
src/vizdoom/tools/zipdir/x64
src/vizdoom/tools/zipdir/x64/
src/vizdoom/tools/zipdir/zipdir
src/vizdoom/wadsrc_wad
src/vizdoom/zdoom_docs
src/vizdoom/zlib/x64/
src/vizdoom/zlib/CTestTestfile.cmake

# Game wads, scenarios backups, logs, demos and personal configurations
*.bak
Expand Down
6 changes: 3 additions & 3 deletions src/lib_python/ViZDoomPythonModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ PYBIND11_MODULE(vizdoom, vz){
/* Exceptions */
/*----------------------------------------------------------------------------------------------------------------*/

#define EXCEPTION_TO_PYT(n) pyb::register_exception< n >(vz, #n);
#define EXCEPTION_TO_PYT(n) pyb::register_exception< n >(vz , #n);
/* register_exception< ExceptionName >(vz, "ExceptionName"); */

EXCEPTION_TO_PYT(FileDoesNotExistException)
Expand Down Expand Up @@ -81,13 +81,13 @@ PYBIND11_MODULE(vizdoom, vz){
#define FUNC_2_PYT(n, f) vz.def( n , f , docstrings::f )
/* vz.def("name", function, docstrings::function) */

#define FUNC_2_PYT_WITH_ARGS(n, f, a...) vz.def( n , f , docstrings::f , a)
#define FUNC_2_PYT_WITH_ARGS(n, f, ...) vz.def( n , f , docstrings::f , __VA_ARGS__ )
/* vz.def("name", function, docstrings::function, args) */

#define CLASS_FUNC_2_PYT(n, cf) .def( n , &cf , docstrings::cf )
/* .def("name", &class::function, docstrings::class::function) */

#define CLASS_FUNC_2_PYT_WITH_ARGS(n, cf, a...) .def( n , &cf , docstrings::cf, a )
#define CLASS_FUNC_2_PYT_WITH_ARGS(n, cf, ...) .def( n , &cf , docstrings::cf , __VA_ARGS__ )
/* .def("name", &class::function, docstrings::class::function, args) */


Expand Down

0 comments on commit 227d0c9

Please sign in to comment.