diff dyncall/dyncall.h @ 362:78dfa2f9783a

- added helper function dcGetModeFromCCSigChar() mapping callconv sig chars to respective mode - added a signature-based syscall to callf testcode - manual clarification about dcReset usage in combination with dcMode
author Tassilo Philipp
date Tue, 14 Apr 2020 16:56:57 +0200
parents 4f9f49fb82ce
children 3bdd326dc269
line wrap: on
line diff
--- a/dyncall/dyncall.h	Mon Apr 13 21:40:28 2020 +0200
+++ b/dyncall/dyncall.h	Tue Apr 14 16:56:57 2020 +0200
@@ -39,6 +39,7 @@
 #define DYNCALL_H
 
 #include "dyncall_types.h"
+#include "dyncall_signature.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -136,6 +137,12 @@
 DC_API DCstruct*  dcDefineStruct  (const char* signature);
 
 
+/* helpers */
+
+/* returns respective mode for callconv sig char (w/o checking if mode exists */
+/* on current platform), or DC_ERROR_UNSUPPORTED_MODE if char isn't a sigchar */
+DC_API DCint      dcGetModeFromCCSigChar(DCsigchar sig_char);
+
 #ifdef __cplusplus
 }
 #endif