Skip to content

Commit

Permalink
#pragma:dynamic,default;
Browse files Browse the repository at this point in the history
  • Loading branch information
DEntisT committed Aug 17, 2023
1 parent bece4ff commit 89e447b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/interpreter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3543,6 +3543,12 @@ public dpp_processpragma(dirgroup[][],dirargs[][])
//dpp_printmem__
if(!strcmp(dirargs[0], "dynamic"))
{
if(!strcmp(dirargs[1], "default"))
{
dpp_memory__dyn(dpp_rescells__);
dpp_printmem__();
return 1;
}
if(!dpp_isnumeric(dirargs[1]))
{
dpp_error("Failed to allocate memory; insufficient value passed.",);
Expand Down

0 comments on commit 89e447b

Please sign in to comment.