emscripten-core / emscripten-core/emscripten

[question]What about it means when the return value is 0

Open
#13,978 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 6h
Merged PRs (30d)
109

Description

[emscripten_webgl_create_context](https://emscripten.org/docs/api_reference/html5.h.html?highlight=current_context#c.emscripten_webgl_create_context)

The **Returns** is described as follows in the documentation:

```
On success, a strictly positive value that represents a handle to the created context. On failure, a negative number that can be cast to an EMSCRIPTEN_RESULT field to get the reason why the context creation failed.
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE
```

Is it **SUCCESS** or **FAILURE** when the return value is **0**?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.