Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
2b59565c
Commit
2b59565c
authored
Feb 27, 2014
by
yoogx
Browse files
* Add library initialization function, required when importing
a dynamic library in Python interpreter
parent
12b015cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/ocarina-python_cmd.adb
View file @
2b59565c
...
...
@@ -145,4 +145,13 @@ package body Ocarina.Python_Cmd is
return
Repo
;
end
Register_Scripts_And_Functions
;
----------------
-- Initialize --
----------------
procedure
Initialize
is
begin
Repo
:=
Register_Scripts_And_Functions
;
end
Initialize
;
end
Ocarina
.
Python_Cmd
;
src/main/ocarina-python_cmd.ads
View file @
2b59565c
...
...
@@ -10,4 +10,11 @@ package Ocarina.Python_Cmd is
-- Register the Python scripting language, and the functions we
-- export
procedure
Initialize
;
pragma
Export
(
C
,
Initialize
,
"initocarina"
);
private
Repo
:
GNATCOLL
.
Scripts
.
Scripts_Repository
;
end
Ocarina
.
Python_Cmd
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment