make %constant directive to work with structs/classes