Skip to content

Commit f85c02b

Browse files
committed
Decided to include functions with ... as argument
1 parent c525859 commit f85c02b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/convert-lib.apln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ raymathFuncs ← ';',⍨¨rm {⍵CI¨⍺/⍨⍵≡¨ 6↑¨⍺} ⊂'RMAPI '
7272
rlglFuncs ← ( rlgl/⍨~∨\functionsEnd⍷ rlgl) {⍵CI¨⍺/⍨⍵≡¨ 6↑¨⍺} ⊂'RLAPI '
7373
physacFuncs ← (physac/⍨~∨\functionsEnd⍷physac) {⍵CI¨⍺/⍨⍵≡¨10↑¨⍺} ⊂'PHYSACDEF '
7474

75-
declorations ← {⍵/⍨∧/3∨/'.'≠↑(⊃¨⍸¨'//'∘⍷¨⍵)↑¨⍵} ⊃,/(raylibFuncs raymathFuncs rlglFuncs rayguiFuncs)
75+
declorations ← (', \.\.\.\);'⎕R', void *args);')¨ ⊃,/(raylibFuncs raymathFuncs rlglFuncs rayguiFuncs)
7676
:EndNamespace

src/temp-c-raylib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ void UnloadRandomSequenceRetPtr(int *sequence){UnloadRandomSequence(sequence);}
121121
void TakeScreenshotRetPtr(const char *fileName){TakeScreenshot(fileName);} // Takes a screenshot of current screen (filename extension defines format)
122122
void SetConfigFlagsRetPtr(unsigned int *flags){SetConfigFlags(*flags);} // Setup init configuration flags (view FLAGS)
123123
void OpenURLRetPtr(const char *url){OpenURL(url);} // Open URL with default system browser (if available)
124+
void TraceLogRetPtr(int *logLevel, const char *text, void *args){TraceLog(*logLevel, text, args);} // Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)
124125
void SetTraceLogLevelRetPtr(int *logLevel){SetTraceLogLevel(*logLevel);} // Set the current threshold (minimum) log level
125126
void MemAllocRetPtr(void **ret, unsigned int *size){*ret=MemAlloc(*size);} // Internal memory allocator
126127
void MemReallocRetPtr(void **ret, void *ptr, unsigned int *size){*ret=MemRealloc(ptr, *size);} // Internal memory reallocator
@@ -438,6 +439,7 @@ void CodepointToUTF8RetPtr(const char **ret, int *codepoint, int *utf8Size){*re
438439
void TextCopyRetPtr(int *ret, char *dst, const char *src){*ret=TextCopy(dst, src);} // Copy one string to another, returns bytes copied
439440
void TextIsEqualRetPtr(bool *ret, const char *text1, const char *text2){*ret=TextIsEqual(text1, text2);} // Check if two text string are equal
440441
void TextLengthRetPtr(unsigned int *ret, const char *text){*ret=TextLength(text);} // Get text length, checks for '\0' ending
442+
void TextFormatRetPtr(const char **ret, const char *text, void *args){*ret=TextFormat(text, args);} // Text formatting with variables (sprintf() style)
441443
void TextSubtextRetPtr(const char **ret, const char *text, int *position, int *length){*ret=TextSubtext(text, *position, *length);} // Get a piece of a text string
442444
void TextReplaceRetPtr(char **ret, const char *text, const char *replace, const char *by){*ret=TextReplace(text, replace, by);} // Replace text string (WARNING: memory must be freed!)
443445
void TextInsertRetPtr(char **ret, const char *text, const char *insert, int *position){*ret=TextInsert(text, insert, *position);} // Insert text in a position (WARNING: memory must be freed!)

0 commit comments

Comments
 (0)