And would this:
Code: Select all
double s[16]Code: Select all
dim s.d(16)The code is mostly wrapped inside a "namespace". Should I just ignore that?

Code: Select all
double s[16]Code: Select all
dim s.d(16)That's the return type of a function, right? Then it would be nothing in PB:Seymour Clufley wrote:Can anyone tell me what "static inline void" would translate to in PB?
Code: Select all
No. The C array is static with 16 elements, while the PB array is dynamic with 17 elements. Having one element too much usually won't hurt, though.And would this:translate to:Code: Select all
double s[16]?Code: Select all
dim s.d(16)
Yes.The code is mostly wrapped inside a "namespace". Should I just ignore that?

Code: Select all
m4::id(s)Code: Select all
assert((dx*dx + dy*dy)<1e-10);Code: Select all
for(size_t j=0; j<4; ++j)
{
for(size_t i=0; i<4; ++i)
{
printf(m[i+4*j]);
}
}
Code: Select all
Structure tDoubleArray
nValue.d [ 16 ]
EndStructure
Define.tDoubleArray MyArray
MyArray\nValue [ 0 ] = 1
Code: Select all
DataSection
!s:
!rq 16
EndDataSection