diff options
| author | Andre Weissflog <floooh@gmail.com> | 2020-05-28 19:46:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-28 19:46:05 +0200 |
| commit | f09c51b099da2569895ef13a7163581ff37f8b68 (patch) | |
| tree | 85bccb929e2f04e37bf7a63951442b4047eaa0cb /sokol_fetch.h | |
| parent | f761d66928bdef7483aa53e28a8cec1231cec6b3 (diff) | |
| parent | 01d522504d46f2bf5bf281770d3f405d039da0a7 (diff) | |
Merge pull request #291 from garettbass/master
reference-based function entries for c++
Diffstat (limited to 'sokol_fetch.h')
| -rw-r--r-- | sokol_fetch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sokol_fetch.h b/sokol_fetch.h index 63e9f1ac..68ca33ed 100644 --- a/sokol_fetch.h +++ b/sokol_fetch.h @@ -936,6 +936,10 @@ SOKOL_API_DECL void sfetch_continue(sfetch_handle_t h); #ifdef __cplusplus } /* extern "C" */ + +/* reference-based equivalents for c++ */ +inline void sfetch_setup(const sfetch_desc_t& desc) { return sfetch_setup(&desc); } + #endif #endif // SOKOL_FETCH_INCLUDED |