aboutsummaryrefslogtreecommitdiff
path: root/sokol_fetch.h
diff options
context:
space:
mode:
authorGarett Bass <garett@recroom.com>2020-05-06 20:43:22 -0700
committerGarett Bass <garett@recroom.com>2020-05-06 20:43:22 -0700
commit01d522504d46f2bf5bf281770d3f405d039da0a7 (patch)
treed6a227d9fbdc96690761c836659dc979726a2900 /sokol_fetch.h
parent45a9269444abdcb8b3e6553c326de89ecf80d477 (diff)
reference-based equivalents for c++
Diffstat (limited to 'sokol_fetch.h')
-rw-r--r--sokol_fetch.h4
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