Skip to content

Commit a0418b7

Browse files
authored
Merge pull request pyscripter#146 from katischulze/pyerr_warnexplicit
Added PyErr_WarnExplicit import
2 parents 38314ef + add6a93 commit a0418b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PythonForDelphi/Components/Sources/Core/PythonEngine.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,6 +1710,7 @@ TPythonInterface=class(TDynamicDll)
17101710
PyErr_SetObject: procedure (ob1, ob2 : PPyObject); cdecl;
17111711
PyErr_SetString: procedure( ErrorObject: PPyObject; text: PAnsiChar); cdecl;
17121712
PyErr_WarnEx: function (ob: PPyObject; text: PAnsiChar; stack_level: NativeInt): integer; cdecl;
1713+
PyErr_WarnExplicit: function (ob: PPyObject; text: PAnsiChar; filename: PAnsiChar; lineno: integer; module: PAnsiChar; registry: PPyObject): integer; cdecl;
17131714
PyImport_GetModuleDict: function: PPyObject; cdecl;
17141715
PyInt_FromLong: function( x: LongInt):PPyObject; cdecl;
17151716
PyArg_Parse: function( args: PPyObject; format: PAnsiChar {;....}) : Integer; cdecl varargs;
@@ -3806,6 +3807,7 @@ procedure TPythonInterface.MapDll;
38063807
PyErr_Fetch := Import('PyErr_Fetch');
38073808
PyErr_SetString := Import('PyErr_SetString');
38083809
PyErr_WarnEx := Import('PyErr_WarnEx');
3810+
PyErr_WarnExplicit := Import('PyErr_WarnExplicit');
38093811
PyEval_GetBuiltins := Import('PyEval_GetBuiltins');
38103812
PyImport_GetModuleDict := Import('PyImport_GetModuleDict');
38113813
if IsPython3000 then

0 commit comments

Comments
 (0)