|
Revision 124, 1.2 kB
(checked in by dsmith, 2 years ago)
|
wminput plugin refactoring
|
| Line | |
|---|
| 1 |
/* Copyright (C) 2007 L. Donnie Smith <wiimote@abstrakraft.org> |
|---|
| 2 |
* |
|---|
| 3 |
* This program is free software; you can redistribute it and/or modify |
|---|
| 4 |
* it under the terms of the GNU General Public License as published by |
|---|
| 5 |
* the Free Software Foundation; either version 2 of the License, or |
|---|
| 6 |
* (at your option) any later version. |
|---|
| 7 |
* |
|---|
| 8 |
* This program is distributed in the hope that it will be useful, |
|---|
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 |
* GNU General Public License for more details. |
|---|
| 12 |
* |
|---|
| 13 |
* You should have received a copy of the GNU General Public License |
|---|
| 14 |
* along with this program; if not, write to the Free Software |
|---|
| 15 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 16 |
* |
|---|
| 17 |
* ChangeLog: |
|---|
| 18 |
* 2007-06-05 L. Donnie Smith <cwiid@abstrakraft.org> |
|---|
| 19 |
* * refactored to isolate plugin logic |
|---|
| 20 |
* |
|---|
| 21 |
* 2007-03-04 L. Donnie Smith <cwiid@abstrakraft.org> |
|---|
| 22 |
* * Initial ChangeLog |
|---|
| 23 |
*/ |
|---|
| 24 |
|
|---|
| 25 |
#include <stdarg.h> |
|---|
| 26 |
#include <stdio.h> |
|---|
| 27 |
|
|---|
| 28 |
#include "wmplugin.h" |
|---|
| 29 |
|
|---|
| 30 |
void wminput_err(char *str, ...) |
|---|
| 31 |
{ |
|---|
| 32 |
va_list ap; |
|---|
| 33 |
|
|---|
| 34 |
va_start(ap, str); |
|---|
| 35 |
vfprintf(stderr, str, ap); |
|---|
| 36 |
fprintf(stderr, "\n"); |
|---|
| 37 |
va_end(ap); |
|---|
| 38 |
} |
|---|