Header fixes

- Fix conflict with RPU command_extra.h
- Fix undefined debug_array_str error
This commit is contained in:
NovaRain
2023-07-24 08:36:28 +08:00
parent 1f802cab6f
commit 489f62f5cb
3 changed files with 5 additions and 7 deletions
+1 -3
View File
@@ -131,7 +131,7 @@ procedure remove_array_block(variable arr, variable blocksize, variable index);
/**
* Converts any array to string for debugging purposes
*/
procedure debug_array_str(variable arr);
#define debug_array_str(arr) debug_array_str_deep(arr, 1)
#define display_array(arr) display_msg(debug_array_str(arr))
@@ -618,8 +618,6 @@ end
Different utility functions...
*/
#define debug_array_str(arr) debug_array_str_deep(arr, 1)
procedure debug_array_str_deep(variable arr, variable levels) begin
#define _newline if (levels > 1) then s += "\n";
#define _indent ii := 0; while (ii < levels - 1) do begin s += " "; ii++; end