yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Jay KwakFix intermittent failure of slang-unit-test-tool/ReplayRecord (#6981)1b539d890

master
620 B29 linesraw
1#define _CRT_SECURE_NO_WARNINGS
2#include "../stacktrace-windows/common.h"
3
4#include <stdio.h>
5#include <stdlib.h>
6#include <windows.h>
7
8extern int exampleMain(int argc, char** argv);
9extern const char* const g_logFileName;
10
11int WinMain(
12    HINSTANCE /* instance */,
13    HINSTANCE /* prevInstance */,
14    LPSTR /* commandLine */,
15    int /*showCommand*/)
16
17{
18    FILE* logFile = fopen(g_logFileName, "w");
19    __try
20    {
21        int argc = 0;
22        char** argv = nullptr;
23        return exampleMain(argc, argv);
24    }
25    __except (exceptionFilter(logFile, GetExceptionInformation()))
26    {
27        ::exit(1);
28    }
29}