Skip to content

fix: Do not insert dummy ld hl, 0 in Fastcall String functions#1064

Open
boriel wants to merge 1 commit intomainfrom
fix/fastcall_string_function
Open

fix: Do not insert dummy ld hl, 0 in Fastcall String functions#1064
boriel wants to merge 1 commit intomainfrom
fix/fastcall_string_function

Conversation

@boriel
Copy link
Collaborator

@boriel boriel commented Mar 22, 2026

What / Why

Functions returning String will be inserted a dummy null string at the end if the user does not return anything.
This is needed to prevent program crashes at a later stage when dealing with dynamic memory.

However, for Fastcall functions this should never be done as this is totally up to the user to deal with this and with the stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant