libluna: Document Ignore.h and ImplPOSIX.cpp

This commit is contained in:
apio 2023-08-27 20:50:53 +02:00
parent c2f173f584
commit 97037b06cb
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 32 additions and 1 deletions

View File

@ -1,5 +1,29 @@
/**
* @file Ignore.h
* @author apio (cloudapio.eu)
* @brief Do nothing.
*
* @copyright Copyright (c) 2023, the Luna authors.
*
*/
#pragma once
/**
* @brief Do nothing.
*
* Calling
* ignore(a, b, c);
* is a more compact equivalent of doing:
* (void)a;
* (void)b;
* (void)c;
*
* This function is used to discard unused variables avoiding compiler warnings, if you know they'll be used in the
* future.
*
* @tparam Args The list of ignored variable types.
*/
template <class... Args> constexpr void ignore(Args...)
{
}

View File

@ -1,4 +1,11 @@
/* POSIX userspace implementation of libluna hooks. */
/**
* @file ImplPOSIX.cpp
* @author apio (cloudapio.eu)
* @brief POSIX userspace implementation of libluna hooks.
*
* @copyright Copyright (c) 2023, the Luna authors.
*
*/
#include <luna/Attributes.h>
#include <luna/Result.h>