Skip to content

Commit

Permalink
Use LoadKernelExtension for gapbind_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored and james-d-mitchell committed Sep 9, 2024
1 parent 9e06a11 commit db2bd96
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gapbind14/demo/init.g
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
#
# Reading the declaration part of the package.
#
_PATH_SO:=Filename(DirectoriesPackagePrograms("gapbind_demo"), "gapbind_demo.so");
if _PATH_SO <> fail then
LoadDynamicModule(_PATH_SO);
if LoadKernelExtension("gapbind_demo") = false then
Error("failed to load gapbind_demo kernel extension");
fi;
Unbind(_PATH_SO);

if not IsBoundGlobal("IsTGapBind14Obj") then
DeclareCategory("IsTGapBind14Obj", IsObject);
Expand Down

0 comments on commit db2bd96

Please sign in to comment.