HGL_SUCCESS is a constant, not a variable.