Skip to content

Commit

Permalink
implement elixir api
Browse files Browse the repository at this point in the history
  • Loading branch information
davydog187 committed Nov 30, 2024
1 parent ddb42d8 commit 04f4205
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Elixir.Luerl.erl
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
%%Helping with storing VM state
-export([externalize/1,internalize/1]).

%% Storing and retrieving private data
-export([put_private/3,get_private/2]).

init() ->
luerl:init().

Expand Down Expand Up @@ -180,3 +183,9 @@ externalize(St) ->

internalize(St) ->
luerl:internalize(St).

put_private(St, K, V) ->
luerl:put_private(K, V, St).

get_private(St, K) ->
luerl:get_private(K, St).

0 comments on commit 04f4205

Please sign in to comment.