View Single Post
nergal
Veteran Member
Join Date: Apr 2012
Old 03-25-2016 , 18:51   Re: New API and Syntax
Reply With Quote #711

Quote:
Originally Posted by BAILOPAN View Post
That doesn't really change how it would be implemented. The best we could do is some kind of hook in the typename parser that has a table of alternate tokens to return. That might be an option, actually, but I'll have to think about it.
it's 1000x better than the #defines I'd be using...

PHP Code:
#define vec3(%1)          float %1[3] 
__________________

Last edited by nergal; 03-25-2016 at 18:51.
nergal is offline