View Single Post
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 09-05-2016 , 12:31   Re: New API and Syntax
Reply With Quote #770

Can we get inline stock support one of these days? Declare a stock function as inline and then have the compiler paste its contents right into the body of the code. I am usually hesitant to use stocks unless it really gives a code readability boost because having stocks willy nilly everywhere will amount to considerable stack creation overhead. The JIT C++ file uses inline functions almost everywhere, for example.

A prototype like:

PHP Code:
stock inline int MyFunction(int params
Or make it its own thing (separate from stock functions) like:

PHP Code:
inline int MyFunction(int params
Spoiler

Last edited by Potato Uno; 09-05-2016 at 12:33.
Potato Uno is offline