• Show log

    Commit

  • Hash : 35c1bbfa
    Author : David Gow
    Date : 2021-08-13T21:43:00

    SDL_stdinc.h: Add an SDL_clamp() function
    
    Add a function to clamp a value to a range.
    
    SDL_clamp(x, a, b) is equivalent to SDL_min(a, SDL_max(x, b)): it
    ensures that x is not smaller than a, nor larger than b.
    
    While, as best I can tell, this isn't actually standardised anywhere,
    it's a very useful function/macro to have.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w thodg_l www_kmx_io thodg
    Tags