// Include files
#include <vector>
struct Type
{
int size;
bool pointerOrReference;
}
int main(int argc, char * argv[])
{
// The vector for all arguments
std::vector<Type> arguments;
// Fill it up with miscellanous arguments
// ....
// ....
// Then if I want to calculate the amount
// I want to 'push' the stack, would this
// be enough, or does it grow deeper than this?
int sizeToPush = 0;
for(int i = 0; i < arguments.size(); i++)
sizeToPush += arguments[i].size;
// And perhaps align the size here... (to a power of 2)
sizeToPush += (sizeToPush % 2);
}