4 changed files with 4 additions and 41 deletions
@ -1,31 +0,0 @@ |
|||||
using System; |
|
||||
using System.Runtime.InteropServices; |
|
||||
|
|
||||
namespace Avalonia.Web |
|
||||
{ |
|
||||
public static partial class Emscripten |
|
||||
{ |
|
||||
const string Prefix = "av_"; |
|
||||
const string Library = "libEmscripten"; |
|
||||
|
|
||||
[LibraryImport(Library, EntryPoint = Prefix + "log", StringMarshalling = StringMarshalling.Utf8)] |
|
||||
public static partial void Log(EM_LOG flags, string format); |
|
||||
|
|
||||
[LibraryImport(Library, EntryPoint = Prefix + "debugger")] |
|
||||
public static partial void Debugger(); |
|
||||
} |
|
||||
|
|
||||
[Flags] |
|
||||
public enum EM_LOG : int |
|
||||
{ |
|
||||
CONSOLE = 1, |
|
||||
WARN = 2, |
|
||||
ERROR = 4, |
|
||||
C_STACK = 8, |
|
||||
JS_STACK = 16, |
|
||||
NO_PATHS = 64, |
|
||||
FUNC_PARAMS = 128, |
|
||||
DEBUG = 256, |
|
||||
INFO = 512, |
|
||||
} |
|
||||
} |
|
||||
@ -1,9 +0,0 @@ |
|||||
#include <emscripten.h> |
|
||||
|
|
||||
void av_log(int flags, const char* format) { |
|
||||
emscripten_log(flags, format); |
|
||||
} |
|
||||
|
|
||||
void av_debugger() { |
|
||||
emscripten_debugger(); |
|
||||
} |
|
||||
Loading…
Reference in new issue