Files
winix/templates/mount.cpp
Tomasz Sowa 4a7f036561 updated to new version of Ezc
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@602 e52654a7-88a9-db11-a3e9-0013d4bc506e
2010-05-30 21:07:46 +00:00

57 lines
745 B
C++
Executable File

/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2008-2010, Tomasz Sowa
* All rights reserved.
*
*/
#include "templates.h"
#include "../core/data.h"
namespace TemplatesFunctions
{
void mount_page_is(Info & i)
{
i.res = data.mounts.pmount->IsArg(Mount::par_page, i.par);
}
void mount_thread_is(Info & i)
{
i.res = data.mounts.pmount->IsArg(Mount::par_thread, i.par);
}
void mount_type_is_thread(Info & i)
{
i.res = data.mounts.pmount->type == Mount::thread;
}
void mount_type_is_ticket(Info & i)
{
i.res = data.mounts.pmount->type == Mount::ticket;
}
void mount_type_is_cms(Info & i)
{
i.res = data.mounts.pmount->type == Mount::cms;
}
} // namespace TemplatesFunctions