Skip to content

Commit

Permalink
Change processing of the memory existence check
Browse files Browse the repository at this point in the history
The macro "IsMemory" created a new map element every time it was
called, if it did not yet exist.
  • Loading branch information
SicroAtGit committed Mar 3, 2018
1 parent 51167e0 commit fbc5a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Memory/IsMemory.pbi
Expand Up @@ -71,7 +71,7 @@ Macro ReAllocateMemory(Memory, Size, Flags=0)
EndMacro

Macro IsMemory(Memory)
MemoryAddresses(Str(Memory))
FindMapElement(MemoryAddresses(), Str(Memory))
EndMacro

Macro FreeMemory(Memory)
Expand Down

0 comments on commit fbc5a4e

Please sign in to comment.