mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2024-12-23 12:35:40 +00:00
__arglist is unsupported by BRUTE and .NET Native
This commit is contained in:
parent
99846d578c
commit
03f0431995
106
src/SDL2.cs
106
src/SDL2.cs
|
@ -424,16 +424,13 @@ namespace SDL2
|
||||||
return UTF8_ToManaged(INTERNAL_SDL_GetError());
|
return UTF8_ToManaged(INTERNAL_SDL_GetError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Use string.Format for arglists */
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_SetError", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, EntryPoint = "SDL_SetError", CallingConvention = CallingConvention.Cdecl)]
|
||||||
private static extern void INTERNAL_SDL_SetError(
|
private static extern void INTERNAL_SDL_SetError(byte[] fmtAndArglist);
|
||||||
byte[] fmt,
|
public static void SDL_SetError(string fmtAndArglist)
|
||||||
__arglist
|
|
||||||
);
|
|
||||||
public static void SDL_SetError(string fmt, __arglist)
|
|
||||||
{
|
{
|
||||||
INTERNAL_SDL_SetError(
|
INTERNAL_SDL_SetError(
|
||||||
UTF8_ToNative(fmt),
|
UTF8_ToNative(fmtAndArglist)
|
||||||
__arglist(__arglist) /* Barf */
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -495,168 +492,147 @@ namespace SDL2
|
||||||
IntPtr message
|
IntPtr message
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* Use string.Format for arglists */
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_Log", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, EntryPoint = "SDL_Log", CallingConvention = CallingConvention.Cdecl)]
|
||||||
private static extern void INTERNAL_SDL_Log(
|
private static extern void INTERNAL_SDL_Log(byte[] fmtAndArglist);
|
||||||
byte[] fmt,
|
public static void SDL_Log(string fmtAndArglist)
|
||||||
__arglist
|
{
|
||||||
);
|
|
||||||
public static void SDL_Log(
|
|
||||||
string fmt,
|
|
||||||
__arglist
|
|
||||||
) {
|
|
||||||
INTERNAL_SDL_Log(
|
INTERNAL_SDL_Log(
|
||||||
UTF8_ToNative(fmt),
|
UTF8_ToNative(fmtAndArglist)
|
||||||
__arglist(__arglist) /* Barf */
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Use string.Format for arglists */
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_LogVerbose", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, EntryPoint = "SDL_LogVerbose", CallingConvention = CallingConvention.Cdecl)]
|
||||||
private static extern void INTERNAL_SDL_LogVerbose(
|
private static extern void INTERNAL_SDL_LogVerbose(
|
||||||
int category,
|
int category,
|
||||||
byte[] fmt,
|
byte[] fmtAndArglist
|
||||||
__arglist
|
|
||||||
);
|
);
|
||||||
public static void SDL_LogVerbose(
|
public static void SDL_LogVerbose(
|
||||||
int category,
|
int category,
|
||||||
string fmt,
|
string fmtAndArglist
|
||||||
__arglist
|
|
||||||
) {
|
) {
|
||||||
INTERNAL_SDL_LogVerbose(
|
INTERNAL_SDL_LogVerbose(
|
||||||
category,
|
category,
|
||||||
UTF8_ToNative(fmt),
|
UTF8_ToNative(fmtAndArglist)
|
||||||
__arglist(__arglist) /* Barf */
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Use string.Format for arglists */
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_LogDebug", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, EntryPoint = "SDL_LogDebug", CallingConvention = CallingConvention.Cdecl)]
|
||||||
private static extern void INTERNAL_SDL_LogDebug(
|
private static extern void INTERNAL_SDL_LogDebug(
|
||||||
int category,
|
int category,
|
||||||
byte[] fmt,
|
byte[] fmtAndArglist
|
||||||
__arglist
|
|
||||||
);
|
);
|
||||||
public static void SDL_LogDebug(
|
public static void SDL_LogDebug(
|
||||||
int category,
|
int category,
|
||||||
string fmt,
|
string fmtAndArglist
|
||||||
__arglist
|
|
||||||
) {
|
) {
|
||||||
INTERNAL_SDL_LogDebug(
|
INTERNAL_SDL_LogDebug(
|
||||||
category,
|
category,
|
||||||
UTF8_ToNative(fmt),
|
UTF8_ToNative(fmtAndArglist)
|
||||||
__arglist(__arglist) /* Barf */
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Use string.Format for arglists */
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_LogInfo", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, EntryPoint = "SDL_LogInfo", CallingConvention = CallingConvention.Cdecl)]
|
||||||
private static extern void INTERNAL_SDL_LogInfo(
|
private static extern void INTERNAL_SDL_LogInfo(
|
||||||
int category,
|
int category,
|
||||||
byte[] fmt,
|
byte[] fmtAndArglist
|
||||||
__arglist
|
|
||||||
);
|
);
|
||||||
public static void SDL_LogInfo(
|
public static void SDL_LogInfo(
|
||||||
int category,
|
int category,
|
||||||
string fmt,
|
string fmtAndArglist
|
||||||
__arglist
|
|
||||||
) {
|
) {
|
||||||
INTERNAL_SDL_LogInfo(
|
INTERNAL_SDL_LogInfo(
|
||||||
category,
|
category,
|
||||||
UTF8_ToNative(fmt),
|
UTF8_ToNative(fmtAndArglist)
|
||||||
__arglist(__arglist) /* Barf */
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Use string.Format for arglists */
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_LogWarn", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, EntryPoint = "SDL_LogWarn", CallingConvention = CallingConvention.Cdecl)]
|
||||||
private static extern void INTERNAL_SDL_LogWarn(
|
private static extern void INTERNAL_SDL_LogWarn(
|
||||||
int category,
|
int category,
|
||||||
byte[] fmt,
|
byte[] fmtAndArglist
|
||||||
__arglist
|
|
||||||
);
|
);
|
||||||
public static void SDL_LogWarn(
|
public static void SDL_LogWarn(
|
||||||
int category,
|
int category,
|
||||||
string fmt,
|
string fmtAndArglist
|
||||||
__arglist
|
|
||||||
) {
|
) {
|
||||||
INTERNAL_SDL_LogWarn(
|
INTERNAL_SDL_LogWarn(
|
||||||
category,
|
category,
|
||||||
UTF8_ToNative(fmt),
|
UTF8_ToNative(fmtAndArglist)
|
||||||
__arglist(__arglist) /* Barf */
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Use string.Format for arglists */
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_LogError", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, EntryPoint = "SDL_LogError", CallingConvention = CallingConvention.Cdecl)]
|
||||||
private static extern void INTERNAL_SDL_LogError(
|
private static extern void INTERNAL_SDL_LogError(
|
||||||
int category,
|
int category,
|
||||||
byte[] fmt,
|
byte[] fmtAndArglist
|
||||||
__arglist
|
|
||||||
);
|
);
|
||||||
public static void SDL_LogError(
|
public static void SDL_LogError(
|
||||||
int category,
|
int category,
|
||||||
string fmt,
|
string fmtAndArglist
|
||||||
__arglist
|
|
||||||
) {
|
) {
|
||||||
INTERNAL_SDL_LogError(
|
INTERNAL_SDL_LogError(
|
||||||
category,
|
category,
|
||||||
UTF8_ToNative(fmt),
|
UTF8_ToNative(fmtAndArglist)
|
||||||
__arglist(__arglist) /* Barf */
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Use string.Format for arglists */
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_LogCritical", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, EntryPoint = "SDL_LogCritical", CallingConvention = CallingConvention.Cdecl)]
|
||||||
private static extern void INTERNAL_SDL_LogCritical(
|
private static extern void INTERNAL_SDL_LogCritical(
|
||||||
int category,
|
int category,
|
||||||
byte[] fmt,
|
byte[] fmtAndArglist
|
||||||
__arglist
|
|
||||||
);
|
);
|
||||||
public static void SDL_LogCritical(
|
public static void SDL_LogCritical(
|
||||||
int category,
|
int category,
|
||||||
string fmt,
|
string fmtAndArglist
|
||||||
__arglist
|
|
||||||
) {
|
) {
|
||||||
INTERNAL_SDL_LogCritical(
|
INTERNAL_SDL_LogCritical(
|
||||||
category,
|
category,
|
||||||
UTF8_ToNative(fmt),
|
UTF8_ToNative(fmtAndArglist)
|
||||||
__arglist(__arglist) /* Barf */
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Use string.Format for arglists */
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_LogMessage", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, EntryPoint = "SDL_LogMessage", CallingConvention = CallingConvention.Cdecl)]
|
||||||
private static extern void INTERNAL_SDL_LogMessage(
|
private static extern void INTERNAL_SDL_LogMessage(
|
||||||
int category,
|
int category,
|
||||||
SDL_LogPriority priority,
|
SDL_LogPriority priority,
|
||||||
byte[] fmt,
|
byte[] fmtAndArglist
|
||||||
__arglist
|
|
||||||
);
|
);
|
||||||
public static void SDL_LogMessage(
|
public static void SDL_LogMessage(
|
||||||
int category,
|
int category,
|
||||||
SDL_LogPriority priority,
|
SDL_LogPriority priority,
|
||||||
string fmt,
|
string fmtAndArglist
|
||||||
__arglist
|
|
||||||
) {
|
) {
|
||||||
INTERNAL_SDL_LogMessage(
|
INTERNAL_SDL_LogMessage(
|
||||||
category,
|
category,
|
||||||
priority,
|
priority,
|
||||||
UTF8_ToNative(fmt),
|
UTF8_ToNative(fmtAndArglist)
|
||||||
__arglist(__arglist) /* Barf */
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Use string.Format for arglists */
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_LogMessageV", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, EntryPoint = "SDL_LogMessageV", CallingConvention = CallingConvention.Cdecl)]
|
||||||
private static extern void INTERNAL_SDL_LogMessageV(
|
private static extern void INTERNAL_SDL_LogMessageV(
|
||||||
int category,
|
int category,
|
||||||
SDL_LogPriority priority,
|
SDL_LogPriority priority,
|
||||||
byte[] fmt,
|
byte[] fmtAndArglist
|
||||||
__arglist
|
|
||||||
);
|
);
|
||||||
public static void SDL_LogMessageV(
|
public static void SDL_LogMessageV(
|
||||||
int category,
|
int category,
|
||||||
SDL_LogPriority priority,
|
SDL_LogPriority priority,
|
||||||
string fmt,
|
string fmtAndArglist
|
||||||
__arglist
|
|
||||||
) {
|
) {
|
||||||
INTERNAL_SDL_LogMessageV(
|
INTERNAL_SDL_LogMessageV(
|
||||||
category,
|
category,
|
||||||
priority,
|
priority,
|
||||||
UTF8_ToNative(fmt),
|
UTF8_ToNative(fmtAndArglist)
|
||||||
__arglist(__arglist) /* Barf */
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue