Skip to content

Commit a2b31c2

Browse files
committed
Add some documentation.
1 parent 2740c25 commit a2b31c2

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/gpuarray/buffer.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,16 @@ GPUARRAY_PUBLIC void gpucontext_props_del(gpucontext_props *p);
100100
*
101101
* \warning This function is not thread-safe.
102102
*
103+
* The passed-in properties pointer will be managed by this function
104+
* and needs not be freed. This means that you shouldn't touch the
105+
* properties object after passing it to this function.
106+
*
103107
* \param res a pointer to a location that will be allocated
104108
* \param name the backend name.
105109
* \param dev the device number. The precise meaning of the device
106110
* number is backend-dependent
107-
* \param props a properties object for the context. Can be NULL for defaults.
111+
* \param props a properties object for the context. Can be NULL for
112+
* defaults.
108113
*
109114
* \returns GA_NO_ERROR or an error code if an error occurred.
110115
*/

src/head.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Used to generate the string tables to embed the cluda headers.
2+
# Usage: python head.py <file>
3+
# This will output <file>.c
24

35
def wrt(f, n, b):
46
f.write(b',')

0 commit comments

Comments
 (0)