summaryrefslogtreecommitdiffhomepage
path: root/include/GenericsLibrary/swap.nhh
blob: 01d24da6d4b17d10d51063e51e3ef34f84bd8f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (See accompanying
// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0)
// Official repository: https://github.com/ne-foss-org/nectar

#ifndef NECTAR_GL_SWAP_NHH
#define NECTAR_GL_SWAP_NHH

//@ Free swap functions for GenericsLibrary.

let swap(let a, let b)
{
    let temp := a;
    a := b;
    b := temp;

    return;
}

#endif //@ NECTAR_GL_SWAP_NHH