mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-29 23:17:30 +01:00
pch migration to modules [wip]
This commit is contained in:
8
scripting/PyInt_macros.h
Normal file
8
scripting/PyInt_macros.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
// Macros cannot cross a module boundary, so they live in a plain header that
|
||||
// consumers pull into their global module fragment. The bodies expand at the use
|
||||
// site, where the imported names are in scope, so this header includes nothing.
|
||||
|
||||
#define PyGetFloat(param) PyFloat_FromDouble(param)
|
||||
#define PyGetBool(param) param ? Py_True : Py_False
|
||||
Reference in New Issue
Block a user