• Nick Andrew's avatar
    Remove the lobject.c:88 assertion failures · e9ee9a57
    Nick Andrew authored
    
    
    When lua assertions are enabled, normal operation results in many:
    
    lobject.c:88: (((t1)->tt) == 4)
    lobject.c:88: (((t2)->tt) == 4)
    lobject.c:88: (((t1)->tt) == 4)
    lobject.c:88: (((t2)->tt) == 4)
    lobject.c:88: (((t1)->tt) == 4)
    lobject.c:88: (((t2)->tt) == 4)
    
    It comes from using the pvalue() macro for 3 pointer types, where
    pvalue() also checks the type of pointer and complains through the
    assertion where the type == 4 (TLIGHTUSERDATA).
    
    Use the correct macro according to the type of data being compared
    to eliminate this assertion error.
    Signed-off-by: default avatarNick Andrew <nick@nick-andrew.net>
    e9ee9a57
lobject.c 6.02 KB