summaryrefslogtreecommitdiffhomepage
path: root/include/GenericsLibrary/swap.nhh
blob: 709053580afc4bb0ce782c1cb2ddc918e2828bb6 (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/nekernel-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