Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dynapi/SDL_dynapi_procs.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
Also, this file gets included multiple times, don't add #pragma once, etc.
*/

// direct jump magic can use these, the rest needs special code.
/* direct jump magic can use these, the rest needs special code. */
#ifndef SDL_DYNAPI_PROC_NO_VARARGS
SDL_DYNAPI_PROC(size_t,SDL_IOprintf,(SDL_IOStream *a, SDL_PRINTF_FORMAT_STRING const char *b, ...),(a,b),return)
SDL_DYNAPI_PROC(void,SDL_Log,(SDL_PRINTF_FORMAT_STRING const char *a, ...),(a),)
Expand All @@ -47,7 +47,7 @@ SDL_DYNAPI_PROC(int,SDL_sscanf,(const char *a, SDL_SCANF_FORMAT_STRING const cha
SDL_DYNAPI_PROC(int,SDL_swprintf,(SDL_OUT_Z_CAP(b) wchar_t *a, size_t b, SDL_PRINTF_FORMAT_STRING const wchar_t *c, ...),(a,b,c),return)
#endif

// New API symbols are added at the end
/* New API symbols are added at the end */
SDL_DYNAPI_PROC(SDL_Surface*,SDL_AcquireCameraFrame,(SDL_Camera *a, Uint64 *b),(a,b),return)
SDL_DYNAPI_PROC(SDL_GPUCommandBuffer*,SDL_AcquireGPUCommandBuffer,(SDL_GPUDevice *a),(a),return)
SDL_DYNAPI_PROC(bool,SDL_AcquireGPUSwapchainTexture,(SDL_GPUCommandBuffer *a, SDL_Window *b, SDL_GPUTexture **c, Uint32 *d, Uint32 *e),(a,b,c,d,e),return)
Expand Down
15 changes: 0 additions & 15 deletions src/dynapi/gendynapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
SDL_DYNAPI_PROCS_H = SDL_ROOT / "src/dynapi/SDL_dynapi_procs.h"
SDL_DYNAPI_OVERRIDES_H = SDL_ROOT / "src/dynapi/SDL_dynapi_overrides.h"
SDL_DYNAPI_SYM = SDL_ROOT / "src/dynapi/SDL_dynapi.sym"
TESTSYMBOLS = SDL_ROOT / "test/testsymbols.c"

RE_EXTERN_C = re.compile(r'.*extern[ "]*C[ "].*')
RE_COMMENT_REMOVE_CONTENT = re.compile(r'\/\*.*\*/')
Expand Down Expand Up @@ -512,20 +511,6 @@ def add_dyn_api(proc: SdlProcedure) -> None:
for line in new_input:
f.write(line)

# File: test/testsymbols.c
#
# Add before "extra symbols go here" line
with TESTSYMBOLS.open() as f:
new_input = []
for line in f:
if "extra symbols go here" in line:
new_input.append(f" SDL_SYMBOL_ITEM({proc.name}),\n")
new_input.append(line)

with TESTSYMBOLS.open("w", newline="") as f:
for line in new_input:
f.write(line)


def main():
parser = argparse.ArgumentParser()
Expand Down
Loading
Loading