View Single Post
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-22-2018 , 04:20   Re: Get sizeof array in a macro
Reply With Quote #5

#define calculateArray2D(%1,%2,%3) _calculateArray2D(%1,%2,sizeof %3)

stock _calculateArray2D(array[][], num, size)
{
//some unimportant stuff here
}

Example >> calculateArray2D(2Darray[0], 2, 2Darray[])

Am not sure what are you trying to do it really depends on it.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 06-22-2018 at 04:22.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh