mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
headergen_v2: increase macro argument limit to 20
When registers have lot of 1- and 2-bit fields it's possible to exceed the 13 argument limit. Usually this only shows up when programming a configuration register, but it's annoying to have to split up the write. 20 arguments should be enough to avoid that. Change-Id: I6240fae4a51ae14600afcfb8a4e3f1e983cbffa6
This commit is contained in:
parent
cffd158ace
commit
f50455f6a7
1 changed files with 1 additions and 1 deletions
|
@ -1459,7 +1459,7 @@ bool common_generator::generate_macro_header(error_context_t& ectx)
|
|||
* and more n>=2, using multiple layers of macros:
|
||||
* __VAR_ORn(pre, s01, s02, ..., sn) expands to pre##s01 | .. | pre##sn */
|
||||
std::string var_or = "__VAR_OR";
|
||||
const int MAX_N = 13;
|
||||
const int MAX_N = 20;
|
||||
|
||||
fout << "#define " << var_or << "1(prefix, suffix) \\\n";
|
||||
fout << " (prefix##suffix)\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue