MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / test

Function test

test/browser/webgl_preprocessor_variables.c:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <string.h>
8
9void test(const char *src)
10{
11 GLuint shader = glCreateShader(GL_VERTEX_SHADER);
12 glShaderSource(shader, 1, &src, NULL);
13 glCompileShader(shader);
14 printf("%s\n", emscripten_webgl_get_shader_info_log_utf8(shader));
15 assert(emscripten_webgl_get_shader_parameter_d(shader, GL_COMPILE_STATUS) == 1);
16}
17
18int main()
19{

Callers 1

mainFunction · 0.70

Calls 2

printfFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected