More portable variation on inline functions (works on CAC)