yum-mirror/slang

Making it easier to work with shaders

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

jarcherNVTry both LoadLibrary functions on Windows (#8368)5500f1176

master
435 B19 linesraw
1// TEST(smoke):CPP_COMPILER_SHARED_LIBRARY:
2
3#include <iostream>
4#include <stdio.h>
5#include <stdlib.h>
6#include <string.h>
7using namespace std;
8
9#if defined(_MSC_VER)
10#define DLL_EXPORT __declspec(dllexport)
11#else
12#define DLL_EXPORT __attribute__((__visibility__("default")))
13#endif
14
15extern "C" DLL_EXPORT int test(int intValue, const char* textValue, char* outTextValue)
16{
17    strcpy(outTextValue, textValue);
18    return intValue;
19}