Skip to content

How to fix from Delphi XE2 #509

@Uefi1

Description

@Uefi1

Hello, the Delphi XE2 compiler shows errors in the code:

  // Fill the m_slots for multi-phase initialization
  FSlots := [PyModuleDef_Slot.Make(Py_mod_exec,
    GetCallBack(Self, @TPythonModule.Exec_Module, 1, DEFAULT_CALLBACK_TYPE))];

..

FSlots := FSlots + [PyModuleDef_Slot.Make(Py_mod_multiple_interpreters, P)];

FSlots := FSlots + [PyModuleDef_Slot.Make(0, nil)];

[DCC Error] PythonEngine.pas(7702): E2001 Ordinal type required

How to correct errors correctly ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions