Commit c9f789ef authored by Reimar Döffinger's avatar Reimar Döffinger

Update tablegen documentation for WRITE_ARRAY macro.

Originally committed as revision 23824 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 765e6134
...@@ -28,9 +28,14 @@ them. ...@@ -28,9 +28,14 @@ them.
The printing code typically looks like this: The printing code typically looks like this:
write_fileheader(); write_fileheader();
printf("static const uint8_t my_array[100] = {\n"); printf("static const uint8_t my_array[100] = {\n");
write_uint8_array(my_array, 100); write_uint8_t_array(my_array, 100);
printf("};\n"); printf("};\n");
This is the more generic form, in case you need to do something special.
Usually you should instead use the short form:
write_fileheader();
WRITE_ARRAY("static const", uint8_t, my_array);
write_fileheader() adds some minor things like a "this is a generated file" write_fileheader() adds some minor things like a "this is a generated file"
comment and some standard includes. comment and some standard includes.
tablegen.h defines some write functions for one- and two-dimensional arrays tablegen.h defines some write functions for one- and two-dimensional arrays
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment